#ifndef ORDER_PROCESS_MANAGER_H
#define ORDER_PROCESS_MANAGER_H

#include <QObject>

#include <QMutex>
#include "Order_Process/order_process_database.h"

class Order_Process_Manager : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString LeftAngle_1 READ LeftAngle_1 WRITE setLeftAngle_1 NOTIFY LeftAngle_1Changed FINAL)
    Q_PROPERTY(QString RightAngle_1 READ RightAngle_1 WRITE setRightAngle_1 NOTIFY RightAngle_1Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_1 READ MaterialHeight_1 WRITE setMaterialHeight_1 NOTIFY MaterialHeight_1Changed FINAL)
    Q_PROPERTY(QString MaterialLength_1 READ MaterialLength_1 WRITE setMaterialLength_1 NOTIFY MaterialLength_1Changed FINAL)
    Q_PROPERTY(QString CutCount_1 READ CutCount_1 WRITE setCutCount_1 NOTIFY CutCount_1Changed FINAL)

    Q_PROPERTY(QString LeftAngle_2 READ LeftAngle_2 WRITE setLeftAngle_2 NOTIFY LeftAngle_2Changed FINAL)
    Q_PROPERTY(QString RightAngle_2 READ RightAngle_2 WRITE setRightAngle_2 NOTIFY RightAngle_2Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_2 READ MaterialHeight_2 WRITE setMaterialHeight_2 NOTIFY MaterialHeight_2Changed FINAL)
    Q_PROPERTY(QString MaterialLength_2 READ MaterialLength_2 WRITE setMaterialLength_2 NOTIFY MaterialLength_2Changed FINAL)
    Q_PROPERTY(QString CutCount_2 READ CutCount_2 WRITE setCutCount_2 NOTIFY CutCount_2Changed FINAL)

    Q_PROPERTY(QString LeftAngle_3 READ LeftAngle_3 WRITE setLeftAngle_3 NOTIFY LeftAngle_3Changed FINAL)
    Q_PROPERTY(QString RightAngle_3 READ RightAngle_3 WRITE setRightAngle_3 NOTIFY RightAngle_3Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_3 READ MaterialHeight_3 WRITE setMaterialHeight_3 NOTIFY MaterialHeight_3Changed FINAL)
    Q_PROPERTY(QString MaterialLength_3 READ MaterialLength_3 WRITE setMaterialLength_3 NOTIFY MaterialLength_3Changed FINAL)
    Q_PROPERTY(QString CutCount_3 READ CutCount_3 WRITE setCutCount_3 NOTIFY CutCount_3Changed FINAL)

    Q_PROPERTY(QString LeftAngle_4 READ LeftAngle_4 WRITE setLeftAngle_4 NOTIFY LeftAngle_4Changed FINAL)
    Q_PROPERTY(QString RightAngle_4 READ RightAngle_4 WRITE setRightAngle_4 NOTIFY RightAngle_4Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_4 READ MaterialHeight_4 WRITE setMaterialHeight_4 NOTIFY MaterialHeight_4Changed FINAL)
    Q_PROPERTY(QString MaterialLength_4 READ MaterialLength_4 WRITE setMaterialLength_4 NOTIFY MaterialLength_4Changed FINAL)
    Q_PROPERTY(QString CutCount_4 READ CutCount_4 WRITE setCutCount_4 NOTIFY CutCount_4Changed FINAL)

    Q_PROPERTY(QString LeftAngle_5 READ LeftAngle_5 WRITE setLeftAngle_5 NOTIFY LeftAngle_5Changed FINAL)
    Q_PROPERTY(QString RightAngle_5 READ RightAngle_5 WRITE setRightAngle_5 NOTIFY RightAngle_5Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_5 READ MaterialHeight_5 WRITE setMaterialHeight_5 NOTIFY MaterialHeight_5Changed FINAL)
    Q_PROPERTY(QString MaterialLength_5 READ MaterialLength_5 WRITE setMaterialLength_5 NOTIFY MaterialLength_5Changed FINAL)
    Q_PROPERTY(QString CutCount_5 READ CutCount_5 WRITE setCutCount_5 NOTIFY CutCount_5Changed FINAL)

    Q_PROPERTY(QString LeftAngle_6 READ LeftAngle_6 WRITE setLeftAngle_6 NOTIFY LeftAngle_6Changed FINAL)
    Q_PROPERTY(QString RightAngle_6 READ RightAngle_6 WRITE setRightAngle_6 NOTIFY RightAngle_6Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_6 READ MaterialHeight_6 WRITE setMaterialHeight_6 NOTIFY MaterialHeight_6Changed FINAL)
    Q_PROPERTY(QString MaterialLength_6 READ MaterialLength_6 WRITE setMaterialLength_6 NOTIFY MaterialLength_6Changed FINAL)
    Q_PROPERTY(QString CutCount_6 READ CutCount_6 WRITE setCutCount_6 NOTIFY CutCount_6Changed FINAL)

    Q_PROPERTY(QString LeftAngle_7 READ LeftAngle_7 WRITE setLeftAngle_7 NOTIFY LeftAngle_7Changed FINAL)
    Q_PROPERTY(QString RightAngle_7 READ RightAngle_7 WRITE setRightAngle_7 NOTIFY RightAngle_7Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_7 READ MaterialHeight_7 WRITE setMaterialHeight_7 NOTIFY MaterialHeight_7Changed FINAL)
    Q_PROPERTY(QString MaterialLength_7 READ MaterialLength_7 WRITE setMaterialLength_7 NOTIFY MaterialLength_7Changed FINAL)
    Q_PROPERTY(QString CutCount_7 READ CutCount_7 WRITE setCutCount_7 NOTIFY CutCount_7Changed FINAL)

    Q_PROPERTY(QString LeftAngle_8 READ LeftAngle_8 WRITE setLeftAngle_8 NOTIFY LeftAngle_8Changed FINAL)
    Q_PROPERTY(QString RightAngle_8 READ RightAngle_8 WRITE setRightAngle_8 NOTIFY RightAngle_8Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_8 READ MaterialHeight_8 WRITE setMaterialHeight_8 NOTIFY MaterialHeight_8Changed FINAL)
    Q_PROPERTY(QString MaterialLength_8 READ MaterialLength_8 WRITE setMaterialLength_8 NOTIFY MaterialLength_8Changed FINAL)
    Q_PROPERTY(QString CutCount_8 READ CutCount_8 WRITE setCutCount_8 NOTIFY CutCount_8Changed FINAL)

    Q_PROPERTY(QString LeftAngle_9 READ LeftAngle_9 WRITE setLeftAngle_9 NOTIFY LeftAngle_9Changed FINAL)
    Q_PROPERTY(QString RightAngle_9 READ RightAngle_9 WRITE setRightAngle_9 NOTIFY RightAngle_9Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_9 READ MaterialHeight_9 WRITE setMaterialHeight_9 NOTIFY MaterialHeight_9Changed FINAL)
    Q_PROPERTY(QString MaterialLength_9 READ MaterialLength_9 WRITE setMaterialLength_9 NOTIFY MaterialLength_9Changed FINAL)
    Q_PROPERTY(QString CutCount_9 READ CutCount_9 WRITE setCutCount_9 NOTIFY CutCount_9Changed FINAL)

    Q_PROPERTY(QString LeftAngle_10 READ LeftAngle_10 WRITE setLeftAngle_10 NOTIFY LeftAngle_10Changed FINAL)
    Q_PROPERTY(QString RightAngle_10 READ RightAngle_10 WRITE setRightAngle_10 NOTIFY RightAngle_10Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_10 READ MaterialHeight_10 WRITE setMaterialHeight_10 NOTIFY MaterialHeight_10Changed FINAL)
    Q_PROPERTY(QString MaterialLength_10 READ MaterialLength_10 WRITE setMaterialLength_10 NOTIFY MaterialLength_10Changed FINAL)
    Q_PROPERTY(QString CutCount_10 READ CutCount_10 WRITE setCutCount_10 NOTIFY CutCount_10Changed FINAL)

    Q_PROPERTY(QString LeftAngle_11 READ LeftAngle_11 WRITE setLeftAngle_11 NOTIFY LeftAngle_11Changed FINAL)
    Q_PROPERTY(QString RightAngle_11 READ RightAngle_11 WRITE setRightAngle_11 NOTIFY RightAngle_11Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_11 READ MaterialHeight_11 WRITE setMaterialHeight_11 NOTIFY MaterialHeight_11Changed FINAL)
    Q_PROPERTY(QString MaterialLength_11 READ MaterialLength_11 WRITE setMaterialLength_11 NOTIFY MaterialLength_11Changed FINAL)
    Q_PROPERTY(QString CutCount_11 READ CutCount_11 WRITE setCutCount_11 NOTIFY CutCount_11Changed FINAL)

    Q_PROPERTY(QString LeftAngle_12 READ LeftAngle_12 WRITE setLeftAngle_12 NOTIFY LeftAngle_12Changed FINAL)
    Q_PROPERTY(QString RightAngle_12 READ RightAngle_12 WRITE setRightAngle_12 NOTIFY RightAngle_12Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_12 READ MaterialHeight_12 WRITE setMaterialHeight_12 NOTIFY MaterialHeight_12Changed FINAL)
    Q_PROPERTY(QString MaterialLength_12 READ MaterialLength_12 WRITE setMaterialLength_12 NOTIFY MaterialLength_12Changed FINAL)
    Q_PROPERTY(QString CutCount_12 READ CutCount_12 WRITE setCutCount_12 NOTIFY CutCount_12Changed FINAL)

    Q_PROPERTY(QString LeftAngle_13 READ LeftAngle_13 WRITE setLeftAngle_13 NOTIFY LeftAngle_13Changed FINAL)
    Q_PROPERTY(QString RightAngle_13 READ RightAngle_13 WRITE setRightAngle_13 NOTIFY RightAngle_13Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_13 READ MaterialHeight_13 WRITE setMaterialHeight_13 NOTIFY MaterialHeight_13Changed FINAL)
    Q_PROPERTY(QString MaterialLength_13 READ MaterialLength_13 WRITE setMaterialLength_13 NOTIFY MaterialLength_13Changed FINAL)
    Q_PROPERTY(QString CutCount_13 READ CutCount_13 WRITE setCutCount_13 NOTIFY CutCount_13Changed FINAL)

    Q_PROPERTY(QString LeftAngle_14 READ LeftAngle_14 WRITE setLeftAngle_14 NOTIFY LeftAngle_14Changed FINAL)
    Q_PROPERTY(QString RightAngle_14 READ RightAngle_14 WRITE setRightAngle_14 NOTIFY RightAngle_14Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_14 READ MaterialHeight_14 WRITE setMaterialHeight_14 NOTIFY MaterialHeight_14Changed FINAL)
    Q_PROPERTY(QString MaterialLength_14 READ MaterialLength_14 WRITE setMaterialLength_14 NOTIFY MaterialLength_14Changed FINAL)
    Q_PROPERTY(QString CutCount_14 READ CutCount_14 WRITE setCutCount_14 NOTIFY CutCount_14Changed FINAL)

    Q_PROPERTY(QString LeftAngle_15 READ LeftAngle_15 WRITE setLeftAngle_15 NOTIFY LeftAngle_15Changed FINAL)
    Q_PROPERTY(QString RightAngle_15 READ RightAngle_15 WRITE setRightAngle_15 NOTIFY RightAngle_15Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_15 READ MaterialHeight_15 WRITE setMaterialHeight_15 NOTIFY MaterialHeight_15Changed FINAL)
    Q_PROPERTY(QString MaterialLength_15 READ MaterialLength_15 WRITE setMaterialLength_15 NOTIFY MaterialLength_15Changed FINAL)
    Q_PROPERTY(QString CutCount_15 READ CutCount_15 WRITE setCutCount_15 NOTIFY CutCount_15Changed FINAL)

    Q_PROPERTY(QString LeftAngle_16 READ LeftAngle_16 WRITE setLeftAngle_16 NOTIFY LeftAngle_16Changed FINAL)
    Q_PROPERTY(QString RightAngle_16 READ RightAngle_16 WRITE setRightAngle_16 NOTIFY RightAngle_16Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_16 READ MaterialHeight_16 WRITE setMaterialHeight_16 NOTIFY MaterialHeight_16Changed FINAL)
    Q_PROPERTY(QString MaterialLength_16 READ MaterialLength_16 WRITE setMaterialLength_16 NOTIFY MaterialLength_16Changed FINAL)
    Q_PROPERTY(QString CutCount_16 READ CutCount_16 WRITE setCutCount_16 NOTIFY CutCount_16Changed FINAL)

    Q_PROPERTY(QString LeftAngle_17 READ LeftAngle_17 WRITE setLeftAngle_17 NOTIFY LeftAngle_17Changed FINAL)
    Q_PROPERTY(QString RightAngle_17 READ RightAngle_17 WRITE setRightAngle_17 NOTIFY RightAngle_17Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_17 READ MaterialHeight_17 WRITE setMaterialHeight_17 NOTIFY MaterialHeight_17Changed FINAL)
    Q_PROPERTY(QString MaterialLength_17 READ MaterialLength_17 WRITE setMaterialLength_17 NOTIFY MaterialLength_17Changed FINAL)
    Q_PROPERTY(QString CutCount_17 READ CutCount_17 WRITE setCutCount_17 NOTIFY CutCount_17Changed FINAL)

    Q_PROPERTY(QString LeftAngle_18 READ LeftAngle_18 WRITE setLeftAngle_18 NOTIFY LeftAngle_18Changed FINAL)
    Q_PROPERTY(QString RightAngle_18 READ RightAngle_18 WRITE setRightAngle_18 NOTIFY RightAngle_18Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_18 READ MaterialHeight_18 WRITE setMaterialHeight_18 NOTIFY MaterialHeight_18Changed FINAL)
    Q_PROPERTY(QString MaterialLength_18 READ MaterialLength_18 WRITE setMaterialLength_18 NOTIFY MaterialLength_18Changed FINAL)
    Q_PROPERTY(QString CutCount_18 READ CutCount_18 WRITE setCutCount_18 NOTIFY CutCount_18Changed FINAL)

    Q_PROPERTY(QString LeftAngle_19 READ LeftAngle_19 WRITE setLeftAngle_19 NOTIFY LeftAngle_19Changed FINAL)
    Q_PROPERTY(QString RightAngle_19 READ RightAngle_19 WRITE setRightAngle_19 NOTIFY RightAngle_19Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_19 READ MaterialHeight_19 WRITE setMaterialHeight_19 NOTIFY MaterialHeight_19Changed FINAL)
    Q_PROPERTY(QString MaterialLength_19 READ MaterialLength_19 WRITE setMaterialLength_19 NOTIFY MaterialLength_19Changed FINAL)
    Q_PROPERTY(QString CutCount_19 READ CutCount_19 WRITE setCutCount_19 NOTIFY CutCount_19Changed FINAL)

    Q_PROPERTY(QString LeftAngle_20 READ LeftAngle_20 WRITE setLeftAngle_20 NOTIFY LeftAngle_20Changed FINAL)
    Q_PROPERTY(QString RightAngle_20 READ RightAngle_20 WRITE setRightAngle_20 NOTIFY RightAngle_20Changed FINAL)
    Q_PROPERTY(QString MaterialHeight_20 READ MaterialHeight_20 WRITE setMaterialHeight_20 NOTIFY MaterialHeight_20Changed FINAL)
    Q_PROPERTY(QString MaterialLength_20 READ MaterialLength_20 WRITE setMaterialLength_20 NOTIFY MaterialLength_20Changed FINAL)
    Q_PROPERTY(QString CutCount_20 READ CutCount_20 WRITE setCutCount_20 NOTIFY CutCount_20Changed FINAL)


    // 当前页码
    Q_PROPERTY(int packetNumber READ packetNumber WRITE setPacketNumber NOTIFY packetNumberChanged FINAL)

public:

    static Order_Process_Manager* getInstance(QObject *parent);
    static Order_Process_Manager* m_Instance;
    static QMutex m_mutex;

    // 是否存在表格
    bool isExistTable();

    // 获取全部数据
    Q_INVOKABLE void getAllDataFromSQL();
    // 获取当前页数据
    Q_INVOKABLE void getDataByPacket(int packetNumber);
    // 添加一条数据
    void addData();
    // 保存数据
    Q_INVOKABLE void saveData(int id,QString key,QString value);
    // 清除数据库全部数据（当前页）
    Q_INVOKABLE void clearAllData(int packetNumber);

    QString LeftAngle_1() const;
    void setLeftAngle_1(const QString &newLeftAngle_1);

    QString RightAngle_1() const;
    void setRightAngle_1(const QString &newRightAngle_1);

    QString MaterialHeight_1() const;
    void setMaterialHeight_1(const QString &newMaterialHeight_1);

    QString MaterialLength_1() const;
    void setMaterialLength_1(const QString &newMaterialLength_1);

    QString CutCount_1() const;
    void setCutCount_1(const QString &newCutCount_1);

    QString LeftAngle_2() const;
    void setLeftAngle_2(const QString &newLeftAngle_2);

    QString RightAngle_2() const;
    void setRightAngle_2(const QString &newRightAngle_2);

    QString MaterialHeight_2() const;
    void setMaterialHeight_2(const QString &newMaterialHeight_2);

    QString MaterialLength_2() const;
    void setMaterialLength_2(const QString &newMaterialLength_2);

    QString CutCount_2() const;
    void setCutCount_2(const QString &newCutCount_2);

    QString LeftAngle_3() const;
    void setLeftAngle_3(const QString &newLeftAngle_3);

    QString RightAngle_3() const;
    void setRightAngle_3(const QString &newRightAngle_3);

    QString MaterialHeight_3() const;
    void setMaterialHeight_3(const QString &newMaterialHeight_3);

    QString MaterialLength_3() const;
    void setMaterialLength_3(const QString &newMaterialLength_3);

    QString CutCount_3() const;
    void setCutCount_3(const QString &newCutCount_3);

    QString LeftAngle_4() const;
    void setLeftAngle_4(const QString &newLeftAngle_4);

    QString RightAngle_4() const;
    void setRightAngle_4(const QString &newRightAngle_4);

    QString MaterialHeight_4() const;
    void setMaterialHeight_4(const QString &newMaterialHeight_4);

    QString MaterialLength_4() const;
    void setMaterialLength_4(const QString &newMaterialLength_4);

    QString CutCount_4() const;
    void setCutCount_4(const QString &newCutCount_4);

    QString LeftAngle_5() const;
    void setLeftAngle_5(const QString &newLeftAngle_5);

    QString RightAngle_5() const;
    void setRightAngle_5(const QString &newRightAngle_5);

    QString MaterialHeight_5() const;
    void setMaterialHeight_5(const QString &newMaterialHeight_5);

    QString MaterialLength_5() const;
    void setMaterialLength_5(const QString &newMaterialLength_5);

    QString CutCount_5() const;
    void setCutCount_5(const QString &newCutCount_5);

    QString LeftAngle_6() const;
    void setLeftAngle_6(const QString &newLeftAngle_6);

    QString RightAngle_6() const;
    void setRightAngle_6(const QString &newRightAngle_6);

    QString MaterialHeight_6() const;
    void setMaterialHeight_6(const QString &newMaterialHeight_6);

    QString MaterialLength_6() const;
    void setMaterialLength_6(const QString &newMaterialLength_6);

    QString CutCount_6() const;
    void setCutCount_6(const QString &newCutCount_6);

    QString LeftAngle_7() const;
    void setLeftAngle_7(const QString &newLeftAngle_7);

    QString RightAngle_7() const;
    void setRightAngle_7(const QString &newRightAngle_7);

    QString MaterialHeight_7() const;
    void setMaterialHeight_7(const QString &newMaterialHeight_7);

    QString MaterialLength_7() const;
    void setMaterialLength_7(const QString &newMaterialLength_7);

    QString CutCount_7() const;
    void setCutCount_7(const QString &newCutCount_7);

    QString LeftAngle_8() const;
    void setLeftAngle_8(const QString &newLeftAngle_8);

    QString RightAngle_8() const;
    void setRightAngle_8(const QString &newRightAngle_8);

    QString MaterialHeight_8() const;
    void setMaterialHeight_8(const QString &newMaterialHeight_8);

    QString MaterialLength_8() const;
    void setMaterialLength_8(const QString &newMaterialLength_8);

    QString CutCount_8() const;
    void setCutCount_8(const QString &newCutCount_8);

    QString LeftAngle_9() const;
    void setLeftAngle_9(const QString &newLeftAngle_9);

    QString RightAngle_9() const;
    void setRightAngle_9(const QString &newRightAngle_9);

    QString MaterialHeight_9() const;
    void setMaterialHeight_9(const QString &newMaterialHeight_9);

    QString MaterialLength_9() const;
    void setMaterialLength_9(const QString &newMaterialLength_9);

    QString CutCount_9() const;
    void setCutCount_9(const QString &newCutCount_9);

    QString LeftAngle_10() const;
    void setLeftAngle_10(const QString &newLeftAngle_10);

    QString RightAngle_10() const;
    void setRightAngle_10(const QString &newRightAngle_10);

    QString MaterialHeight_10() const;
    void setMaterialHeight_10(const QString &newMaterialHeight_10);

    QString MaterialLength_10() const;
    void setMaterialLength_10(const QString &newMaterialLength_10);

    QString CutCount_10() const;
    void setCutCount_10(const QString &newCutCount_10);

    QString LeftAngle_11() const;
    void setLeftAngle_11(const QString &newLeftAngle_11);

    QString RightAngle_11() const;
    void setRightAngle_11(const QString &newRightAngle_11);

    QString MaterialHeight_11() const;
    void setMaterialHeight_11(const QString &newMaterialHeight_11);

    QString MaterialLength_11() const;
    void setMaterialLength_11(const QString &newMaterialLength_11);

    QString CutCount_11() const;
    void setCutCount_11(const QString &newCutCount_11);

    QString LeftAngle_12() const;
    void setLeftAngle_12(const QString &newLeftAngle_12);

    QString RightAngle_12() const;
    void setRightAngle_12(const QString &newRightAngle_12);

    QString MaterialHeight_12() const;
    void setMaterialHeight_12(const QString &newMaterialHeight_12);

    QString MaterialLength_12() const;
    void setMaterialLength_12(const QString &newMaterialLength_12);

    QString CutCount_12() const;
    void setCutCount_12(const QString &newCutCount_12);

    QString LeftAngle_13() const;
    void setLeftAngle_13(const QString &newLeftAngle_13);

    QString RightAngle_13() const;
    void setRightAngle_13(const QString &newRightAngle_13);

    QString MaterialHeight_13() const;
    void setMaterialHeight_13(const QString &newMaterialHeight_13);

    QString MaterialLength_13() const;
    void setMaterialLength_13(const QString &newMaterialLength_13);

    QString CutCount_13() const;
    void setCutCount_13(const QString &newCutCount_13);

    QString LeftAngle_14() const;
    void setLeftAngle_14(const QString &newLeftAngle_14);

    QString RightAngle_14() const;
    void setRightAngle_14(const QString &newRightAngle_14);

    QString MaterialHeight_14() const;
    void setMaterialHeight_14(const QString &newMaterialHeight_14);

    QString MaterialLength_14() const;
    void setMaterialLength_14(const QString &newMaterialLength_14);

    QString CutCount_14() const;
    void setCutCount_14(const QString &newCutCount_14);

    QString LeftAngle_15() const;
    void setLeftAngle_15(const QString &newLeftAngle_15);

    QString RightAngle_15() const;
    void setRightAngle_15(const QString &newRightAngle_15);

    QString MaterialHeight_15() const;
    void setMaterialHeight_15(const QString &newMaterialHeight_15);

    QString MaterialLength_15() const;
    void setMaterialLength_15(const QString &newMaterialLength_15);

    QString CutCount_15() const;
    void setCutCount_15(const QString &newCutCount_15);

    QString LeftAngle_16() const;
    void setLeftAngle_16(const QString &newLeftAngle_16);

    QString RightAngle_16() const;
    void setRightAngle_16(const QString &newRightAngle_16);

    QString MaterialHeight_16() const;
    void setMaterialHeight_16(const QString &newMaterialHeight_16);

    QString MaterialLength_16() const;
    void setMaterialLength_16(const QString &newMaterialLength_16);

    QString CutCount_16() const;
    void setCutCount_16(const QString &newCutCount_16);

    QString LeftAngle_17() const;
    void setLeftAngle_17(const QString &newLeftAngle_17);

    QString RightAngle_17() const;
    void setRightAngle_17(const QString &newRightAngle_17);

    QString MaterialHeight_17() const;
    void setMaterialHeight_17(const QString &newMaterialHeight_17);

    QString MaterialLength_17() const;
    void setMaterialLength_17(const QString &newMaterialLength_17);

    QString CutCount_17() const;
    void setCutCount_17(const QString &newCutCount_17);

    QString LeftAngle_18() const;
    void setLeftAngle_18(const QString &newLeftAngle_18);

    QString RightAngle_18() const;
    void setRightAngle_18(const QString &newRightAngle_18);

    QString MaterialHeight_18() const;
    void setMaterialHeight_18(const QString &newMaterialHeight_18);

    QString MaterialLength_18() const;
    void setMaterialLength_18(const QString &newMaterialLength_18);

    QString CutCount_18() const;
    void setCutCount_18(const QString &newCutCount_18);

    QString LeftAngle_19() const;
    void setLeftAngle_19(const QString &newLeftAngle_19);

    QString RightAngle_19() const;
    void setRightAngle_19(const QString &newRightAngle_19);

    QString MaterialHeight_19() const;
    void setMaterialHeight_19(const QString &newMaterialHeight_19);

    QString MaterialLength_19() const;
    void setMaterialLength_19(const QString &newMaterialLength_19);

    QString CutCount_19() const;
    void setCutCount_19(const QString &newCutCount_19);

    QString LeftAngle_20() const;
    void setLeftAngle_20(const QString &newLeftAngle_20);

    QString RightAngle_20() const;
    void setRightAngle_20(const QString &newRightAngle_20);

    QString MaterialHeight_20() const;
    void setMaterialHeight_20(const QString &newMaterialHeight_20);

    QString MaterialLength_20() const;
    void setMaterialLength_20(const QString &newMaterialLength_20);

    QString CutCount_20() const;
    void setCutCount_20(const QString &newCutCount_20);

    int packetNumber() const;
    void setPacketNumber(int newPacketNumber);

private:
    Order_Process_Manager(QObject *parent = nullptr);
    ~Order_Process_Manager();
    Order_Process_Manager(const Order_Process_Manager&)=delete;
    Order_Process_Manager& operator=(const Order_Process_Manager)=delete;

    Order_Process_Database* Db = nullptr;

    QString m_LeftAngle_1;

    QString m_RightAngle_1;

    QString m_MaterialHeight_1;

    QString m_MaterialLength_1;

    QString m_CutCount_1;

    QString m_LeftAngle_2;

    QString m_RightAngle_2;

    QString m_MaterialHeight_2;

    QString m_MaterialLength_2;

    QString m_CutCount_2;

    QString m_LeftAngle_3;

    QString m_RightAngle_3;

    QString m_MaterialHeight_3;

    QString m_MaterialLength_3;

    QString m_CutCount_3;

    QString m_LeftAngle_4;

    QString m_RightAngle_4;

    QString m_MaterialHeight_4;

    QString m_MaterialLength_4;

    QString m_CutCount_4;

    QString m_LeftAngle_5;

    QString m_RightAngle_5;

    QString m_MaterialHeight_5;

    QString m_MaterialLength_5;

    QString m_CutCount_5;

    QString m_LeftAngle_6;

    QString m_RightAngle_6;

    QString m_MaterialHeight_6;

    QString m_MaterialLength_6;

    QString m_CutCount_6;

    QString m_LeftAngle_7;

    QString m_RightAngle_7;

    QString m_MaterialHeight_7;

    QString m_MaterialLength_7;

    QString m_CutCount_7;

    QString m_LeftAngle_8;

    QString m_RightAngle_8;

    QString m_MaterialHeight_8;

    QString m_MaterialLength_8;

    QString m_CutCount_8;

    QString m_LeftAngle_9;

    QString m_RightAngle_9;

    QString m_MaterialHeight_9;

    QString m_MaterialLength_9;

    QString m_CutCount_9;

    QString m_LeftAngle_10;

    QString m_RightAngle_10;

    QString m_MaterialHeight_10;

    QString m_MaterialLength_10;

    QString m_CutCount_10;

    QString m_LeftAngle_11;

    QString m_RightAngle_11;

    QString m_MaterialHeight_11;

    QString m_MaterialLength_11;

    QString m_CutCount_11;

    QString m_LeftAngle_12;

    QString m_RightAngle_12;

    QString m_MaterialHeight_12;

    QString m_MaterialLength_12;

    QString m_CutCount_12;

    QString m_LeftAngle_13;

    QString m_RightAngle_13;

    QString m_MaterialHeight_13;

    QString m_MaterialLength_13;

    QString m_CutCount_13;

    QString m_LeftAngle_14;

    QString m_RightAngle_14;

    QString m_MaterialHeight_14;

    QString m_MaterialLength_14;

    QString m_CutCount_14;

    QString m_LeftAngle_15;

    QString m_RightAngle_15;

    QString m_MaterialHeight_15;

    QString m_MaterialLength_15;

    QString m_CutCount_15;

    QString m_LeftAngle_16;

    QString m_RightAngle_16;

    QString m_MaterialHeight_16;

    QString m_MaterialLength_16;

    QString m_CutCount_16;

    QString m_LeftAngle_17;

    QString m_RightAngle_17;

    QString m_MaterialHeight_17;

    QString m_MaterialLength_17;

    QString m_CutCount_17;

    QString m_LeftAngle_18;

    QString m_RightAngle_18;

    QString m_MaterialHeight_18;

    QString m_MaterialLength_18;

    QString m_CutCount_18;

    QString m_LeftAngle_19;

    QString m_RightAngle_19;

    QString m_MaterialHeight_19;

    QString m_MaterialLength_19;

    QString m_CutCount_19;

    QString m_LeftAngle_20;

    QString m_RightAngle_20;

    QString m_MaterialHeight_20;

    QString m_MaterialLength_20;

    QString m_CutCount_20;

    int m_packetNumber;

signals:
    void LeftAngle_1Changed();
    void RightAngle_1Changed();
    void MaterialHeight_1Changed();
    void MaterialLength_1Changed();
    void CutCount_1Changed();
    void LeftAngle_2Changed();
    void RightAngle_2Changed();
    void MaterialHeight_2Changed();
    void MaterialLength_2Changed();
    void CutCount_2Changed();
    void LeftAngle_3Changed();
    void RightAngle_3Changed();
    void MaterialHeight_3Changed();
    void MaterialLength_3Changed();
    void CutCount_3Changed();
    void LeftAngle_4Changed();
    void RightAngle_4Changed();
    void MaterialHeight_4Changed();
    void MaterialLength_4Changed();
    void CutCount_4Changed();
    void LeftAngle_5Changed();
    void RightAngle_5Changed();
    void MaterialHeight_5Changed();
    void MaterialLength_5Changed();
    void CutCount_5Changed();
    void LeftAngle_6Changed();
    void RightAngle_6Changed();
    void MaterialHeight_6Changed();
    void MaterialLength_6Changed();
    void CutCount_6Changed();
    void LeftAngle_7Changed();
    void RightAngle_7Changed();
    void MaterialHeight_7Changed();
    void MaterialLength_7Changed();
    void CutCount_7Changed();
    void LeftAngle_8Changed();
    void RightAngle_8Changed();
    void MaterialHeight_8Changed();
    void MaterialLength_8Changed();
    void CutCount_8Changed();
    void LeftAngle_9Changed();
    void RightAngle_9Changed();
    void MaterialHeight_9Changed();
    void MaterialLength_9Changed();
    void CutCount_9Changed();
    void LeftAngle_10Changed();
    void RightAngle_10Changed();
    void MaterialHeight_10Changed();
    void MaterialLength_10Changed();
    void CutCount_10Changed();
    void LeftAngle_11Changed();
    void RightAngle_11Changed();
    void MaterialHeight_11Changed();
    void MaterialLength_11Changed();
    void CutCount_11Changed();
    void LeftAngle_12Changed();
    void RightAngle_12Changed();
    void MaterialHeight_12Changed();
    void MaterialLength_12Changed();
    void CutCount_12Changed();
    void LeftAngle_13Changed();
    void RightAngle_13Changed();
    void MaterialHeight_13Changed();
    void MaterialLength_13Changed();
    void CutCount_13Changed();
    void LeftAngle_14Changed();
    void RightAngle_14Changed();
    void MaterialHeight_14Changed();
    void MaterialLength_14Changed();
    void CutCount_14Changed();
    void LeftAngle_15Changed();
    void RightAngle_15Changed();
    void MaterialHeight_15Changed();
    void MaterialLength_15Changed();
    void CutCount_15Changed();
    void LeftAngle_16Changed();
    void RightAngle_16Changed();
    void MaterialHeight_16Changed();
    void MaterialLength_16Changed();
    void CutCount_16Changed();
    void LeftAngle_17Changed();
    void RightAngle_17Changed();
    void MaterialHeight_17Changed();
    void MaterialLength_17Changed();
    void CutCount_17Changed();
    void LeftAngle_18Changed();
    void RightAngle_18Changed();
    void MaterialHeight_18Changed();
    void MaterialLength_18Changed();
    void CutCount_18Changed();
    void LeftAngle_19Changed();
    void RightAngle_19Changed();
    void MaterialHeight_19Changed();
    void MaterialLength_19Changed();
    void CutCount_19Changed();
    void LeftAngle_20Changed();
    void RightAngle_20Changed();
    void MaterialHeight_20Changed();
    void MaterialLength_20Changed();
    void CutCount_20Changed();
    void packetNumberChanged();
};

#endif // ORDER_PROCESS_MANAGER_H
